/**
 * Copyright &copy; 2012-2015 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.soccer.cms.modules.cms.utils;

import java.util.List;

import com.google.common.collect.Lists;
import com.soccer.cms.common.utils.SpringContextHolder;

import com.soccer.cms.modules.cms.entity.Club;
import com.soccer.cms.modules.cms.dao.ClubDao;

/**
 * 俱乐部Utils
 * @author zouqh
 * @version 2015-05-25
 */
public class ClubUtils {

	private static ClubDao clubDao = SpringContextHolder.getBean(ClubDao.class);
	
	public static Club getClub(String id) {
		return clubDao.get(id);
	}
	
	public static List<Club> getClubList() {
		List<Club> clubs = null;
		Club club = new Club();
		clubs = clubDao.findList(club);
		if(clubs == null){
			clubs = Lists.newArrayList();
		}
		return clubDao.findList(club);
	}
	
	
}